package com.ssd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ssd.entity.RegionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface BusinessDao extends BaseMapper<RegionEntity> {

    /**
     * 根据ID查询运营区域信息
     *
     * @return 运营区域实体
     */
    @Select("SELECT * FROM tb_business WHERE id = #{businessId}")
    RegionEntity selectBusinessById(Long businessId);
}